<header class="mui-bar mui-bar-nav">
  <button class="mui-btn mui-btn-link mui-btn-nav mui-pull-left mui-back">
    <span class="mui-icon mui-icon-left-nav"></span>
    返回
  </button>
  <h1 class="mui-title">提示信息</h1>
</header>

<div class="mui-content" style="margin-top:10px;">

<div class="alertBg" id="msgBox">
	<i id="alerticon" class="<?php echo $msgtype ? $msgtype : "success";?>"></i>
	<span class="vm f20" id='alertmessage'><?php echo $message;?></span>
</div>

</div>


<script>
function gogo(){
	var go_url = "<?php echo $url;?>";
	if(go_url != ""){
		window.location.href = go_url;
	}else{
		//window.history.back();
	}
}

function gogo2(){
	var times = <?php echo ($msgtype == "success")? "1500" : "3500";?>;
	setTimeout(gogo,times);
}

window.onload=gogo2;//不要括号
</script>